#ifndef _atomic_0828_feature_extraction_service_H_
#define _atomic_0828_feature_extraction_service_H_

/*------------------------ Include Begin --------------------------*/

// C
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <string>
#include <math.h>
#include <time.h>
#include <ctype.h>

// C++
#include <iostream>
#include <fstream>
#include <chrono>
#include <string>
#include <random>
#include <cmath>
#include <vector>
#include <map>
#include <set>
#include <stdbool.h>
#include <cctype> // for size_t
#include <sstream>

/*------------------------  Include End  -------------------------*/

/*------------------------  Service Info Begin  --------------------------*/
/**
 *
 * @name:     atomic_0828_feature_extraction_service
 * @chinese_name: 特征提取
 * @description: 目标识别中对预处理后的图像数据进行特征提取（如边缘、纹理特征）
 * @version: V1.0.0
 * @build_time: 2025-08-28 16:00:00
 * @license: MIT
 * @service_path: atomic_0828_feature_extraction_service
 *
 * @resource_requirement:
 *         + cpu_architecture: x86_64
 *         + memory: 4GB
 *         + hard_disk: 50GB
 *
 * @developer:
 *      +name: twilight
 *      +email: twilight@atomic_0828_feature_extraction_service.com
 * @maintainer:
 *      +name: twilight
 *      +email:twilight@atomic_0828_feature_extraction_service.com
 * @operating_system:
 *      +name:Linux
 *      +v1:5.13.0-117-generic
 *      +v2:5.14.0-117-generic
 *      +name:SylixOS
 *      +v1:1.0.0
 *      +v2:1.0.2
 *
 *
 *
 */
/*------------------------  Service Info End  --------------------------*/

/*------------------------  Return Type Begin  --------------------------*/

#define ATOMIC_SERVICE_SUCCESS 0
#define ATOMIC_SERVICE_FAIL -1
#define ATOMIC_SERVICE_TIMEOUT -2
#define ATOMIC_SERVICE_ERROR -3
#define ATOMIC_SERVICE_NOT_SUPPORT -4
#define ATOMIC_SERVICE_NOT_READY -5
#define ATOMIC_SERVICE_NOT_INIT -6
#define ATOMIC_SERVICE_NOT_START -7
#define ATOMIC_SERVICE_NOT_STOP -8
#define ATOMIC_SERVICE_NOT_RELEASE -9
#define ATOMIC_SERVICE_NOT_DESTROY -10
#define ATOMIC_SERVICE_NOT_CREATE -11
#define ATOMIC_SERVICE_NOT_OPEN -12
#define ATOMIC_SERVICE_NOT_CLOSE -13
#define ATOMIC_SERVICE_NOT_READ -14
#define ATOMIC_SERVICE_NOT_WRITE -15
#define ATOMIC_SERVICE_NOT_SEEK -16
#define ATOMIC_SERVICE_NOT_TELL -17
#define ATOMIC_SERVICE_NOT_SIZE -18
#define ATOMIC_SERVICE_NOT_SEEK_END -19
#define ATOMIC_SERVICE_NOT_SEEK_SET -20
#define ATOMIC_SERVICE_NOT_SEEK_CUR -21
#define ATOMIC_SERVICE_NOT_SEEK_ABS -22

/*------------------------  Return Type End  --------------------------*/


/*------------------------  Message Info Begin  --------------------------*/


typedef struct
{
    int proc_width;    // 预处理后图像宽度
    int proc_height;   // 预处理后图像高度
    int is_valid;      // 预处理结果有效性(1:有效,0:无效)
    int pixel_min;     // 像素最小值(0-255)
    int pixel_max;     // 像素最大值(0-255)
} FeatureExtractInput;

typedef struct
{
    int feature_count; // 提取到的特征数量
    int edge_strength; // 边缘特征强度(0-100)
    int texture_score; // 纹理特征评分(0-100)
    int return_type;   // 返回状态码

    int img_width;      // 图像宽度
    int img_height;     // 图像高度
} FeatureExtractOutput;

/*------------------------  Message Info End  --------------------------*/

/*------------------------  Interface Declaration Begin  --------------------------*/

int getFeatureExtract(FeatureExtractInput *input, FeatureExtractOutput *output);


/*------------------------  Interface Declaration End  --------------------------*/


#endif // _atomic_0828_feature_extraction_service_H_
